feat: add @memoize decorator with expiration and handler options#63
feat: add @memoize decorator with expiration and handler options#63
Conversation
Coverage report
Show new covered files 🐣
Test suite run success84 tests passing in 11 suites. Report generated by 🧪jest coverage report action from 662c1fa |
|
🚫 Unpublished versions: ∅
|
193934a to
c643c6a
Compare
|
🚫 Unpublished versions:
|
c643c6a to
606c210
Compare
|
🚫 Unpublished versions:
|
Added `@memoize` decorator for caching result of calls with identical input: - Prevents redundant calls using `executeMemoize`. - Supports configurable expiration and memoization tracking. - Update `functionMetadata` model and add `methodSignature` The expiration is capped at 1000ms for efficiency and to avoid unnecessary memory usage.
606c210 to
662c1fa
Compare
|
🚫 Unpublished versions:
|
|
🚫 Unpublished versions: |
Summary:
This PR introduces the
@memoizedecorator for method memoization, caching results to avoid redundant calculations.Key Changes:
Usage:
Decorate methods with
@memoizeto cache results for repeated calls with the same inputs. This improves performance by reusing stored results.Example: